package com.yao2san.simcasserver.config;

import com.yao2san.simcasserver.processor.AbstractDatabaseAuthenticationProcessor;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.util.List;
import java.util.Map;

@ConfigurationProperties(prefix = "sim.cas.processor")
@EnableConfigurationProperties(ProcessorConfiguration.class)
@Data
public class ProcessorConfiguration {
    private Class<? extends AbstractDatabaseAuthenticationProcessor> processClass;
    private Map<String, String> filedMapping;
    private String querySql;
    private List<String> outFields;
    private String usernameField;
    private String passwordField;

    private int filterOrder;

    private Class encryptClass;

    private Map<String, String> pages;
}
